package com.uw.uwrpc.core.api;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.HashMap;
import java.util.Map;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class RpcRequest {

    private String service;
    private String methodSign;
    private Object[] args;


    // 跨调用方需要传递的参数
    private Map<String, String> parameters = new HashMap<>();

    public String requestSign() {
        return service + "." + methodSign;
    }
}
